package com.etime.perfectschool.util;

import java.text.SimpleDateFormat;
import java.util.Locale;


//  获取时间的工具类

public class TimeUtil {
    public static String getTime(){
        long timeMillis = System.currentTimeMillis();
        String timeFormat="yyy-MM-dd HH:mm";
        SimpleDateFormat simpleDateFormat=new SimpleDateFormat(timeFormat, Locale.getDefault());
        String time = simpleDateFormat.format(timeMillis);
        return time;
    }
}
